window._create = {
	index: 'http://binfentao.cn/index.php?r=index/wap',
	nine: 'http://binfentao.cn/index.php?r=nine/wap',
	cat: 'http://binfentao.cn/index.php?r=index/lay',
	list: 'http://binfentao.cn/index.php?r=user/list',
	user: 'http://binfentao.cn/index.php?r=user/index'
}

window._refresh = {

	list: 'http://binfentao.cn/index.php?r=user/list',
	user: 'http://binfentao.cn/index.php?r=user/index'
}

document.addEventListener('plusready', function() {
	let _t = plus.webview.currentWebview();
	plus.nativeUI.closeWaiting();
	_t.endPullToRefresh();
	_t.setPullToRefresh({
		support: true,
		height: '50px',
		range: '200px',
		contentdown: {
			caption: '下拉可以刷新'
		},
		contentover: {
			caption: '释放立即刷新'
		},
		contentrefresh: {
			caption: '正在刷新...'
		}
	}, onRefresh);

	function onRefresh() {
		_t.reload(true)
	}
	let isshow = true
	for (var item in _create) {
		if (_t.id == _create[item]) {
			isshow = false
		}
	}
	if (isshow) {
		_t.show("pop-in");
	}
	_t.setBlockNetworkImage(false);
})
